<template>
  <div class="category">
    <h3>{{ title }}分类</h3>
    <!-- <ul>
      <li v-for="(item, index) in listData" :key="index">{{ item }}</li>
    </ul> -->
    <slot>我是默认值，没有内容的时候我出现</slot>
  </div>
</template>

<script>
export default {
  name: "Category",
  data() {
    return {};
  },
  props: ["title"],
  components: {},
  mounted() {},
  methods: {},
};
</script>

<style scoped>
.category {
  background-color: rgb(94, 104, 241);
  width: 200px;
  height: 300px;
}
h3 {
  text-align: center;
  background: rgb(202, 196, 196);
}
img {
  align-items: center;
  display: flex;
  width: 120px;
  height: 120px;
}
</style>
